package com.warehouse_management.purchase.service;

/**
 * @PACKAGE_NAME: com.warehouse_management.purchase.service
 * @NAME: ManufacturerService
 * @USER: ZhouYongCheng
 * @DATE: 2022/10/3
 * @TIME: 2:52
 * @Description: 厂商管理服务层
 */

import com.baomidou.mybatisplus.extension.service.IService;
import com.warehouse_management.config.PageModel;
import com.warehouse_management.purchase.model.Firm;
import com.warehouse_management.purchase.model.FirmCondition;
import com.warehouse_management.system.model.City;
import com.warehouse_management.system.model.Province;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ManufacturerService extends IService<FirmCondition> {

    /**
     * 连小龙
     * 分页显示
     * @param firm
     * @param pageModel
     * @return
     */
    PageModel<FirmCondition> PageFirmPosition(FirmCondition firm,PageModel<FirmCondition> pageModel);

    /**
     * 连小龙
     * 查询单个厂商详情
     * @return
     */
    public FirmCondition getOneFirm(FirmCondition firm);


    /**
     * 连小龙
     * 通过条件模糊查询
     * @return
     */
    public PageModel<FirmCondition> queryFirmListByCondition(FirmCondition firm,PageModel<FirmCondition> pageModel);


    /**
     * 连小龙
     * 添加厂商
     * @return
     */
    public int addFirm(FirmCondition firm);

    /**
     * 连小龙
     * 修改厂商状态
     * @return
     */
    public int updateFirm(FirmCondition firm);

    /**
     * 连小龙
     * 查询所有省份
     * @return
     */
    List<Province> queryProvince();

    /**
     * 连小龙
     * 查询所有城市
     * @return
     */
    List<City> queryCity(String id);
}
